package com.nulstudio.sppm.Entities;

public class Result<T> {

    private int code;
    private String message;
    private T result;

    public Result() {
        this.code = 0;
        this.message = "";
        this.result = null;
    }

    public Result(int code, String message) {
        this.code = code;
        this.message = message;
        this.result = null;
    }

    public Result(T result) {
        this.code = 0;
        this.message = "";
        this.result = result;
    }


    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getResult() {
        return result;
    }

    public void setResult(T result) {
        this.result = result;
    }
}
